<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title>登录 —— 管理后台</title>
        <link rel="shortcut icon" href="{{ url_for("static", filename="images/favicon.ico") }}"/>
        <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
        <link rel="stylesheet" href="{{ url_for("static", filename = "AdminLTE/bower_components/bootstrap/dist/css/bootstrap.min.css") }}">
        <link rel="stylesheet" href="{{ url_for("static", filename = "AdminLTE/bower_components/font-awesome/css/font-awesome.min.css") }}">
        <link rel="stylesheet" href="{{ url_for("static", filename = "AdminLTE/bower_components/Ionicons/css/ionicons.min.css") }}">
        <link rel="stylesheet" href="{{ url_for("static", filename = "AdminLTE/dist/css/AdminLTE.min.css") }}">
        <link rel="stylesheet" href="{{ url_for("static", filename = "AdminLTE/plugins/iCheck/square/blue.css") }}">
        <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
    </head>
    <body class="hold-transition login-page">
        <div class="login-box">
            <div class="login-logo">
                {{ global.name }}
            </div>
            <div class="login-box-body">
                {% if wrong_password %}
                    <div class="callout callout-danger">
                        <p>密码错误！请重试！</p>
                    </div>
                {% endif %}
                <p class="login-box-msg">管理后台登录</p>
                <form action="" method="post">
                    <div class="form-group has-feedback">
                        <input type="password" class="form-control" placeholder="密码" name="password">
                        <span class="glyphicon glyphicon-lock form-control-feedback"></span>
                    </div>
                    <div class="row">
                        <div class="col-xs-4">
                            <button type="submit" class="btn btn-primary btn-block btn-flat">登录</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
        <script src="{{ url_for("static", filename = "AdminLTE/bower_components/jquery/dist/jquery.min.js") }}"></script>
        <script src="{{ url_for("static", filename = "AdminLTE/bower_components/bootstrap/dist/js/bootstrap.min.js") }}"></script>
        <script src="{{ url_for("static", filename = "AdminLTE/plugins/iCheck/icheck.min.js") }}"></script>
        <script>
            $(function () {
                $('input').iCheck({
                    checkboxClass: 'icheckbox_square-blue',
                    radioClass: 'iradio_square-blue',
                    increaseArea: '20%'
                });
            });
        </script>
    </body>
</html>